//app.js
App({
  onLaunch: function () {
   
  },
  globalData: {
    userInfo: null
  },

  onShow: function (options) {
    this.globalData.extraData = options.referrerInfo.extraData;
    
  },
  alert: function (content, success) {
    wx.showModal({
      title: '提示',
      content: content,
      showCancel: false,
      success(res) {
        if (res.confirm) {
          success ? success() : ''
        } else if (res.cancel) {
          console.log('用户点击取消')
        }
      }
    })
  },
})